Skip to content

Conversation

@viktorking7
Copy link
Contributor

PR Description

  • What: Add explicit zero-divisor guards to stdMath.percentDelta(uint256,uint256) and stdMath.percentDelta(int256,int256).
  • Why: Prevents runtime division-by-zero and makes failure mode explicit and predictable.
  • How: Added require checks with a concise error message and brief comments.

onbjerg
onbjerg previously approved these changes Sep 23, 2025
@zerosnacks zerosnacks requested a review from onbjerg October 6, 2025 10:42
@zerosnacks zerosnacks enabled auto-merge (squash) October 6, 2025 10:49
@viktorking7
Copy link
Contributor Author

@zerosnacks any updates?

@0xrusowsky
Copy link
Contributor

@viktorking7 i've just approved and triggered the CI. once everything green it will auto-merge

@zerosnacks zerosnacks merged commit 0051db1 into foundry-rs:master Oct 10, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants